import 'dart:ui';

import 'package:flutter/material.dart';
// import 'res/listData.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("有点f麻烦"),
        ),
        body: LayoutDemo(),
      ),
    );
  }
}

class LayoutDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        Row(
          children: <Widget>[
            Expanded(
              child: Container(
                height: 180.0,
                color: Colors.blue,
                child: Center(
                    child: Text(
                  "使者",
                  textAlign: TextAlign.center,
                  style: TextStyle(fontSize: 32.0, color: Colors.white),
                )),
              ),
            )
          ],
        ),
        SizedBox(
          height: 10,
        ),
        Row(
          children: <Widget>[
            Expanded(
              flex: 2,
              child: Container(
                height: 180.0,
                child: Image.network(
                  "https://www.itying.com/images/flutter/2.png",
                  fit: BoxFit.cover,
                ),
              ),
            ),
            SizedBox(
              width: 10,
            ),
            Expanded(
              flex: 1,
              child: Container(
                height: 180.0,
                child: ListView(
                  children: <Widget>[
                    Container(
                        height: 85.0,
                        child: Image.network(
                            "https://www.itying.com/images/flutter/2.png",
                            fit: BoxFit.cover)),
                    SizedBox(height: 10),
                    Container(
                        height: 85.0,
                        child: Image.network(
                            "https://www.itying.com/images/flutter/3.png",
                            fit: BoxFit.cover))
                  ],
                ),
              ),
            )
          ],
        )
      ],
    );
  }
}
